import {Keyboard, StyleSheet, TouchableOpacity, View} from 'react-native';

const TouchableView = ({children}: React.PropsWithChildren<{}>) => {
  return (
    <TouchableOpacity
      style={styles.containerView}
      activeOpacity={1}
      onPress={() => Keyboard.dismiss()}>
      {children}
    </TouchableOpacity>
  );
};
const styles = StyleSheet.create({
  containerView: {
    flex: 1,
    backgroundColor: 'white',
  },
});
export default TouchableView;
